package com.ruoyi.zq.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.system.domain.SysNotice;
import com.ruoyi.zq.domin.ZqNoticeDetails;
import com.ruoyi.zq.domin.dto.ZqNoticeDTO;
import com.ruoyi.zq.domin.vo.NoticeDetailsVO;

import java.util.List;

/**
 *
 *
 * @Author: LoneyFeather
 * @Date: Created in 15:25 2021/12/30
 */
public interface ZqNoticeService extends IService<ZqNoticeDetails> {


    List<NoticeDetailsVO> selectNoticeList(NoticeDetailsVO notice);

    /**
     * 获取某一条通知或公告
     * @param noticeId 通知公告id
     * @return
     */
    NoticeDetailsVO selectNoticeById(Long noticeId);

    /**
     * 添加新的通知包括了详情信息
     * @param noticeDTO
     * @return
     */
    int addNoticeAndDetails(ZqNoticeDTO noticeDTO);

    int updateNotice(ZqNoticeDTO noticeDTO);

    int deleteNoticeByIds(Long[] noticeIds);

    /**
     * 志愿被选中通知模板
     */
    ZqNoticeDTO getNoticePithOnTelephone(String activityName);

}
